package com.songcha.module_category.ui.activity

import android.os.Bundle
import android.view.View
import com.songcha.library_base.base.BaseActivity
import com.songcha.module_category.R
import com.songcha.module_category.databinding.CategoryActivityMainBinding
import com.songcha.module_category.ui.fragment.category.CategoryFragment

class MainActivity : BaseActivity() {
    lateinit var binding: CategoryActivityMainBinding

    override fun getRootView(): View? {
        binding=CategoryActivityMainBinding.inflate(layoutInflater)
        return binding.root
    }

    override fun initView(savedInstanceState: Bundle?) {
        super.initView(savedInstanceState)

        val trans=supportFragmentManager.beginTransaction()
        trans.replace(R.id.category_frag, CategoryFragment())
        trans.commit()
    }

    override fun isImmerseStatusBar(): Boolean {
        return true
    }

}